<?php

/**
 * 默认控制器
 */
class Controller_Default extends Controller_Abstract
{
    function actionIndex()
    {    //文字连接	
    	$char_link = Contents::find('model = 3 and status = 1 and cateid = 79 and (expire>? or expire = 0)',time())->getall();
    	$this->_view['char_link'] = $char_link;
    	//图片连接
    	$img_link = Contents::find('model = 3 and status = 1 and cateid = 80  and (expire>? or expire = 0)',time())->getall();
    	$this->_view['img_link'] = $img_link;
    	//TOP 图片 精彩活动
    	$img_activite = Contents::find('model = 3 and status = 1 and cateid = 117 and (expire>? or expire = 0)',time())->getall();
    	$this->_view['img_activite'] = $img_activite;

    	
    }
}